<template>
  <div >
    我是Son组件-App回复：{{ title }}
  </div>
  <button @click="changeTitle">修改title</button>
</template>

<script>
export default {
  props: ['title'],
  methods:{
    changeTitle(){
      this.$emit('changeTitle','你很棒，继续努力')
    }
  }
}
</script>

<style scoped>

</style>


